import { pickerOptionsStatic } from '@/utils/config'
import { translate } from '@/utils/i18n'
export const formItems = [
    {
        filed: 'venueId',
        type: 'select',
        label: translate('venue'),
        labelCode: 'name',
        valueCode: 'id',
        options: []
    },
    {
        filed: 'flag',
        type: 'select',
        options: [
            { value: '1', label: translate('zj') },
            { value: '2', label: translate('js') }
        ],
        label: translate('szlx')
    },
    {
        filed: 'selTime',
        type: 'daterange',
        clearable: false,
        label: translate('cjrq'),
        pickerOptions: pickerOptionsStatic
    },
    {
        filed: 'name',
        type: 'input',
        label: translate('zxk')
    },
    {
        filed: 'changeType',
        type: 'select',
        label: translate('czlx'),
        // labelCode: 'name',
        // valueCode: 'id',
        options: [
            { label: translate('chouzhi'), value: '1' },
            { label: translate('xf'), value: '2' },
            // { label: '赠金变动', value: '3' },
            { label: translate('tx'), value: '4' },
            { label: translate('yetz'), value: '5' },
            { label: translate('gqqn'), value: '6' }
        ]
    }

]
export const queryFormConfig = {
    formItems,
    online: true
}

export const propList = [
    { label: translate('lsh'), prop: 'id', minWidth: '140' },
    { label: translate('czlx'), prop: 'changeTypeName', minWidth: '100' },
    { label: translate('szlx'), prop: 'flag', minWidth: '100' },
    { label: translate('jybjUnit'), prop: 'value', minWidth: '120' },
    { label: translate('jyzjUnit'), prop: 'giveValue', minWidth: '120' },
    { label: translate('zxk'), prop: 'name', minWidth: '100' },
    { label: translate('xfcg'), prop: 'venueName', minWidth: '140' },
    { label: translate('orderId'), prop: 'orderId', minWidth: '160' },
    { label: translate('dealTime'), prop: 'createTime', minWidth: '160' }
]
